import ReactDOM from 'react-dom/client'
import App from './App'
import store from './store'
// !#1 按需导入 Provider
import { Provider } from 'react-redux'

const root = ReactDOM.createRoot(document.getElementById('root'))
// !#2 用 Provider 包裹整个应用并传递 store
root.render(
  <Provider store={store}>
    <App />
  </Provider>
)
